#include "OctreeObject.h"

/**************************************************************************************************
* Constructor
**************************************************************************************************/
OctreeObject::OctreeObject(void) {
	//center = new float[3];//(float*) malloc(3 * sizeof(float));
	center[0] = 0.0f; center[1] = 0.0f; center[2] = 0.0f;
	data = 0;
	parentNode = 0;
	nextObject = 0;
	previousObject = 0;
}

/**************************************************************************************************
* Destructor
**************************************************************************************************/
OctreeObject::~OctreeObject(void) {
	if(center)
		delete[] center;
//	delete data;
	parentNode = 0;
	nextObject = 0;
	previousObject = 0;
}

/**************************************************************************************************
* Initialize the object (attempt to make thread-friendly?
**************************************************************************************************/
void OctreeObject::initialize(void) {
	data = 0;
	parentNode = 0;
	nextObject = 0;
	previousObject = 0;
}